﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DTO;

namespace _1042009_1042034
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        static public Size SizeContext = new Size(800, 800);
        private void Form1_Load(object sender, EventArgs e)
        {

            MessageBox.Show(Business.HoaDonService.Count().ToString());

            PhongDTO p = new PhongDTO();
            int malonnhat = Business.PhongService.GetIdentity();
            
            uctCapNhatDanhMucPhong cut = new uctCapNhatDanhMucPhong();
            this.tabControl1.TabPages[2].Controls.Add(cut);   

            //int count = Business.ThamSoService.GetIdentity();
            //MessageBox.Show(count.ToString());

           // MessageBox.Show(DateTime.Today.ToString());
        }



        int i = 0;
        private void btnColor_Click(object sender, EventArgs e)
        {
            i = i + 10;
            Color cl = Color.FromArgb(i);

            this.btnColor.BackColor = cl;
            this.lblColor.Text = i.ToString();
        }

    }
}
